﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RN
{
    public class ClientManager
    {
        private Loader loader;

        public ClientManager(Loader l)
        {
            loader = l;
        }
        public bool validateUser(string user, string pass)
        {
            foreach (Client cl in loader.clients)
            {
                if (cl.username == user && cl.password == pass)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
